package com.xiumu.dao.blog;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiumu.pojo.blog.entity.BlogCategory;
import com.xiumu.pojo.blog.query.BlogCategoryQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 博客分类表 Mapper 接口
 *
 * @author XiuMu
 * @Date 2023-01-29 17:45:09
 */
@Service
public interface BlogCategoryDao extends BaseMapper<BlogCategory> {

    /**
     * 分页查询
     *
     * @param query     分页条件
     * @param blogCategory 查询条件
     * @return
     */
    Page<BlogCategory> selectPage(Page<BlogCategory> query, @Param("authority") BlogCategoryQuery blogCategory);

    /**
     * 根据条件查询 BlogCategory
     *
     * @param blogCategory 查询条件
     * @return
     */
    List<BlogCategory> selectByBlogCategory(@Param("blogCategory") BlogCategoryQuery blogCategory);
}